import util from "../../utils/util.js"

/** 获取订单列表 */
export function OrderLists(params) {
  return util.request({
    url: "/order/pageList",
    method: 'post',
    params,
  })
}

/** 订单详情 */
export function OrderDetail(params) {
  return util.request({
    url: "/order/detail",
    method: 'get',
    params,
  })
}

/** 取消订单 */
export function CancelOrder(params) {
  return util.request({
    url: "/order/cancel",
    method: 'post',
    params,
  })
}

/** 确认支付 */
export function ConfirmPay(params) {
  return util.request({
    url: "/order/confirmPay",
    method: 'post',
    params,
  })
}

/** 确认收货 */
export function ConfirmReceipt(params) {
  return util.request({
    url: "/order/confirmReceipt",
    method: 'post',
    params,
  })
}

/** 物流轨迹 */
export function LogisticsNodes(params) {
  return util.request({
    url: "/order/orderLogisticsInfo",
    method: 'post',
    params,
  })
}

/** 订单附件 */
export function OrderFile(params) {
  return util.request({
    url: "/order/orderAnnexInfo",
    method: 'post',
    params,
  })
}

/** 获取订单列表统计 */
export function OrdersCount(params) {
  return util.request({
    url: "/order/stateStat",
    method: 'get',
    params,
  })
}
